Skip to content

Fix #5883: bind session/view push channels to their HTTP session - #5884

Merged
BalusC merged 1 commit into
4.0from
issue_5883
Jul 28, 2026
Merged

Fix #5883: bind session/view push channels to their HTTP session#5884
BalusC merged 1 commit into
4.0from
issue_5883

Conversation

@BalusC

@BalusC BalusC commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

#5883

The web socket handshake accepted any client presenting a known channel ID, so a leaked session or view scoped channel ID could be connected to from a foreign or absent HTTP session. Bind those channels to the HTTP session that registered them and refuse the handshake otherwise. Application scoped channels stay unbound by design.

Also make the endpoint idle timeout and the maximum number of sessions per channel operator-configurable, both defaulting to the current behavior:

  • com.sun.faces.websocketEndpointIdleTimeout (default 0, no timeout)
  • com.sun.faces.websocketMaxSessionsPerChannel (default unbounded)

Backport of omnifaces/omnifaces@d5cae24, ref GHSA-fp43-vj7g-pg92.

The web socket handshake accepted any client presenting a known channel
ID, so a leaked session or view scoped channel ID could be connected to
from a foreign or absent HTTP session. Bind those channels to the HTTP
session that registered them and refuse the handshake otherwise.
Application scoped channels stay unbound by design.

Also make the endpoint idle timeout and the maximum number of sessions
per channel operator-configurable, both defaulting to the current
behavior:

- com.sun.faces.websocketEndpointIdleTimeout (default 0, no timeout)
- com.sun.faces.websocketMaxSessionsPerChannel (default unbounded)

Backport of omnifaces/omnifaces@d5cae24, ref GHSA-fp43-vj7g-pg92.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@BalusC
BalusC changed the base branch from master to 4.0 July 28, 2026 18:19
@BalusC
BalusC merged commit 7288228 into 4.0 Jul 28, 2026
2 checks passed
@BalusC
BalusC deleted the issue_5883 branch July 28, 2026 18:34
@BalusC BalusC added this to the 4.0.21 milestone Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant